//列表数据加载
$(function() {
  $.getJSON("../data/list-data.json", function(data) {
    $.each(data, function(index, list) {
      $("#goods-list").append(
        "<li class='yui3-u-1-4'><div class='list-wrap' ><div class='p-img'><img src='" + list["img"] + "' alt=''></div><div class='price'><strong><em>¥</em> <i>" + list["n-price"] + "</i></strong></div>" +
        "<div class='attr'><em>" + list["desc"] + "</em></div><div class='cu'><em><span>促</span>" + list["cu"] + "</em></div>" +
        "<div class='operate'><a href='success-cart.html' target='blank' class='sui-btn btn-bordered btn-danger'>加入购物车</a>" +
        "<a href='javascript:void(0);' class='sui-btn btn-bordered'>对比</a>" +
        "<a href='javascript:void(0);' class='sui-btn btn-bordered'>降价通知</a>" +
        "</div></div></li >"
      );

    })
  })
})
